<?xml version="1.0" encoding="utf-8"?>
<Content xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:blueonionsoftware-com:bloget:runtime:data">
  <text>KinetDx will occasionally change display settings (primary monitor, display resolution, etc) using standard Win32 commands.  If this happens during a KinetDx run, .NET widgets can be adversely affected, such that the will not render at all, or they will render on the wrong monitor, or simply in the wrong location.  The fix for this is to make sure the following ControlStyles are set on the control:

&lt;code&gt;
            SetStyle(ControlStyles.DoubleBuffer | 
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.UserPaint, true);
&lt;/code&gt;

This applies to controls that inherit from UserControl as well as controls that inherit from standard windows controls (e.g. System.Windows.Forms.Button).

Ravi Desai.
</text>
  <last_update>2007-10-04T00:52:31.5320806Z</last_update>
  <source_title />
  <source_link />
  <comments />
  <references />
  <attachments />
</Content>